package com.rentong.wx.sys.controller;

import com.rentong.common.R;
import com.rentong.wx.sys.domain.SysServiceSmallTypeEntity;
import com.rentong.wx.sys.service.SysServiceSmallTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * @author zhangle
 * @email 459343178@qq.com
 * @date 2024-12-24 14:42:29
 */
@RestController
public class SysServiceSmallTypeController {

    @Autowired
    private SysServiceSmallTypeService sysServiceSmallTypeService;


    //227、查询套餐列表的标题
    @RequestMapping("/sysServiceSmallType/getTaocanTitle")
    public R getTaocanTitle(SysServiceSmallTypeEntity sysServiceSmallTypeEntity) {
        return R.success(sysServiceSmallTypeService.getTaocanTitle(sysServiceSmallTypeEntity));
    }

    //123、用户端套餐列表
    @RequestMapping("/sysServiceSmallType/getTaocanList")
    public R getTaocanList(Long smallTypeId) {
        return R.success(sysServiceSmallTypeService.getTaocanList(smallTypeId));
    }

}
